package com.trkj.pojos;

import java.io.Serializable;
import javax.persistence.*;
import java.math.BigDecimal;


/**
 * The persistent class for the OFFICE database table.
 * 
 */
@Entity
@NamedQuery(name="Office.findAll", query="SELECT o FROM Office o")
public class Office implements Serializable {
	private static final long serialVersionUID = 1L;

	@Id
	@Column(name="OFFICE_ID")
	private String officeId;

	@Column(name="OFFICE_COMPANY")
	private String officeCompany;

	@Column(name="OFFICE_NAME")
	private String officeName;

	@Column(name="OFFICE_PRICE")
	private BigDecimal officePrice;

	//bi-directional many-to-one association to OfficeType
	@ManyToOne
	@JoinColumn(name="OFTP_ID")
	private OfficeType officeType;

	public Office() {
	}

	public String getOfficeId() {
		return this.officeId;
	}

	public void setOfficeId(String officeId) {
		this.officeId = officeId;
	}

	public String getOfficeCompany() {
		return this.officeCompany;
	}

	public void setOfficeCompany(String officeCompany) {
		this.officeCompany = officeCompany;
	}

	public String getOfficeName() {
		return this.officeName;
	}

	public void setOfficeName(String officeName) {
		this.officeName = officeName;
	}

	public BigDecimal getOfficePrice() {
		return this.officePrice;
	}

	public void setOfficePrice(BigDecimal officePrice) {
		this.officePrice = officePrice;
	}

	public OfficeType getOfficeType() {
		return this.officeType;
	}

	public void setOfficeType(OfficeType officeType) {
		this.officeType = officeType;
	}

}